import * as types from '../action-types';
function counter(state = {number: 5}, action) {
    switch(action.type) {
        case types.ADD:
            return { number: state.number + 1 }
            break;
        case types.MINUS:
            return { number: state.number - 1 }
            break;
        default:
            return state;
    }
}

export default counter;
